<!DOCTYPE html>
<html>
<body>
<div id="a" role="group">Role will change</div>
<script>
  function go() {
    document.getElementById('a').setAttribute('role', 'button');
}
</script>
</body>
</html>
